package com.ican.dao.product;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ican.common.hibernate.HibernateDao;
import com.ican.domain.product.Language;

@Repository("languageDao")
public class LanguageDao extends HibernateDao<Language, Integer> {

    public Language findLanguageByCode(String code){
        return this.findUnique("from Language where code = ?", code);
    }
    
    public List<Language> findLanguage(){
        return this.find("from Language");
    }
}
